
;; -*- coding: utf-8 -*-
;; (setq server-use-tcp t)
(add-to-list 'load-path (expand-file-name "~/.emacs.d/"))
(add-to-list 'load-path "~/.emacs.d/biubiubiu/")

;; theme setting
(require 'color-theme)
(color-theme-initialize)
;(color-theme-lethe)
(color-theme-gnome2)
;; (org-babel-do-load-languages		
;;  'org-babel-load-languages
;;  '(;; other Babel languages
;;    (dot . t)
;;    (plantuml . t)
;;    ))
(setq org-plantuml-jar-path
      (expand-file-name "~/.emacs.d/plugins/plantuml.jar"))


;;----------------------------------------------------------------------------
;; Which functionality to enable (use t or nil for true and false)
;;----------------------------------------------------------------------------
(setq *spell-check-support-enabled* nil)
(setq *is-mac* (eq system-type 'darwin))
(setq *is-windows* (eq system-type 'windows-nt))
(setq *is-linux* (eq system-type 'gnu/linux))

;(require 'plantuml-mode)		
;(require 'ob-plantuml)
(require 'init-utils) ; convenient utils funcs missing from EMACS

;(require 'init-fonts)                   ; fonts according OS
(require 'init-frame)                   ; Graphic interface settings
(require 'init-window)                  ; window move & split
(require 'init-exec-path)               ; Set up $exec-path
(require 'init-isearch)
(require 'init-scroll-lock)
(require 'init-tramp)                   ; NB!!

;; package download alone put in ~/.emacs.d/site-lisp/ dir download
;; from internet
(require 'init-site-lisp)               ; add ~/.emacs.d/site-lisp load-path

;; (require 'init-slime)

;; package from ELPA
(require 'init-elpa)
(require 'init-auto-complete)
(require 'init-ido)
;(require 'init-org)
;; (require 'init-theme)
(require 'init-dired)

(require 'init-editing-utils)           ; global settings
(require 'init-hippie-expand)
(require 'init-cua-mode)
(require 'init-git)

;; (require 'init-python)
(require 'init-elisp)

(require 'init-key-binding)             ; key bindings goes after all package being loaded first

;;add by afa311
(require 'init-myfunc)
;; (require 'init-lcEngine)
(require 'init-etags)
;(require 'init-gtags)
(require 'init-helm)
;; (require 'init-auto-complete-gtags)
;(require 'init-color-theme)		;
;; (load-theme 'hickey t)
(require 'init-yasnippet)

;; (setq default-tab-width 4)
;(require 'init-cedet)

;; (require 'init-etags-plus)
;; (require 'init-remotemake)
(require 'init-smart-make)
;;end by afa311


(require 'server)
(unless (server-running-p)
  (server-start))
(provide 'init)
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(blink-cursor-mode nil)
 '(column-number-mode t)
 '(cua-mode t nil (cua-base))
 '(current-language-environment "Chinese-GBK")
 '(custom-safe-themes (quote ("d293542c9d4be8a9e9ec8afd6938c7304ac3d0d39110344908706614ed5861c9" "dc46381844ec8fcf9607a319aa6b442244d8c7a734a2625dac6a1f63e34bc4a6" "c7359bd375132044fe993562dfa736ae79efc620f68bab36bd686430c980df1c" "61d1a82d5eaafffbdd3cab1ac843da873304d1f05f66ab5a981f833a3aec3fc0" "978bd4603630ecb1f01793af60beb52cb44734fc14b95c62e7b1a05f89b6c811" "e26780280b5248eb9b2d02a237d9941956fc94972443b0f7aeec12b5c15db9f3" "f220c05492910a305f5d26414ad82bf25a321c35aa05b1565be12f253579dec6" "29a4267a4ae1e8b06934fec2ee49472daebd45e1ee6a10d8ff747853f9a3e622" "d0ff5ea54497471567ed15eb7279c37aef3465713fb97a50d46d95fe11ab4739" default)))
 '(menu-bar-mode t)
 '(show-paren-mode t)
 '(tool-bar-mode t))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )
